/**
 * 
 */
package com.neal.web.registry;

import org.springframework.binding.convert.converters.Converter;
import org.springframework.binding.convert.converters.StringToDate;
import org.springframework.binding.convert.service.DefaultConversionService;
import org.springframework.stereotype.Service;

/**
 * @author Neal
 * @version 1.0
 * @description
 */
@Service("flowConversionService")
public class FlowConversionService extends DefaultConversionService {

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.springframework.binding.convert.service.GenericConversionService#
	 * addConverter(org.springframework.binding.convert.converters.Converter)
	 */
	@SuppressWarnings("deprecation")
	@Override
	public void addConverter(Converter converter) {
		// TODO Auto-generated method stub
		super.addConverter(converter);
		addDefaultConverters();
		addDefaultAliases();	
		StringToDate dateConverter = new StringToDate();
		dateConverter.setPattern("yyyy/MM/dd");
		addConverter("customConverter", dateConverter);
	}
}
